package com.xiaobo.framework;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author: <a href="get_xiaobo@163.com">Josh_Xu</a>
 * @description:
 * @create: 2020-05-24 11:12
 **/
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
public class MallApplication {

    @LoadBalanced
    public static void main(String[] args) {
        new SpringApplicationBuilder()
                .sources(MallApplication.class)
                .web(WebApplicationType.SERVLET)
                .properties("spring.profiles.active=dev,default")
                .run(args);
    }
}
